package demo1;

import java.sql.SQLOutput;

public class Dog extends Animal {

    public Dog(String name, int age, String color) {
        super(name, age, color);
    }

    public void bark() {
        System.out.println(this.name + "正在汪汪汪叫");
    }

    public void eat() {
        System.out.println(this.name + "正在吃狗粮");
    }


    public Dog sleep() {
        System.out.println(this.name + "正在睡觉");
        return null;
    }


    public void play() {
        System.out.println(this.name + "正在玩乒乓球");
    }

}
